package angryBirds;

public class Test {
	public static void main(String[] args) {
		ShoutAbility aoShout = new AoShout(); // 嗷嗷叫
		ShoutAbility zhaShout = new ZhaShout(); // 喳喳叫
		ShoutAbility noShout = new NoShout(); // 不会叫

		Bird bird;

		// 炸弹鸟
		bird = new BombBird(zhaShout);
		bird.fly();
		bird.shout();
		bird.attack();
		System.out.println();

		// 胖子鸟
		bird = new FatBird(noShout);
		bird.fly();
		bird.shout();
		bird.attack();
		System.out.println();

		// 红色鸟
		bird = new RedBird(zhaShout);
		bird.fly();
		bird.shout();
		bird.attack();
		System.out.println();

		// 火箭鸟
		bird = new RocketBird(aoShout);
		bird.fly();
		bird.shout();
		bird.attack();
		System.out.println();

		// 分裂鸟
		bird = new SplitBird(aoShout);
		bird.fly();
		bird.shout();
		bird.attack();
	}
}
